<div class="breadcrumbs">          
    <% if @current_folder #checking if we are under any folder %>  
        <%= link_to "Document", :action=>:index, :controller=>:folders %>  
        <% @current_folder.ancestors.reverse.each do |folder| %>  
            » <%= link_to folder.name, browse_path(folder) %>  
        <% end %>  
         »  <%= @current_folder.name %>  
    <% else #if we are not under any folder%>  
        <%=t('document.doc')%>  
    <% end %>  
</div>
